package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZhwyBuildingMapper;
import com.ruoyi.system.domain.ZhwyBuilding;
import com.ruoyi.system.service.IZhwyBuildingService;

/**
 * 楼栋信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-07
 */
@Service
public class ZhwyBuildingServiceImpl implements IZhwyBuildingService 
{
    @Autowired
    private ZhwyBuildingMapper zhwyBuildingMapper;

    /**
     * 查询楼栋信息
     * 
     * @param id 楼栋信息主键
     * @return 楼栋信息
     */
    @Override
    public ZhwyBuilding selectZhwyBuildingById(Long id)
    {
        return zhwyBuildingMapper.selectZhwyBuildingById(id);
    }

    /**
     * 查询楼栋信息列表
     * 
     * @param zhwyBuilding 楼栋信息
     * @return 楼栋信息
     */
    @Override
    public List<ZhwyBuilding> selectZhwyBuildingList(ZhwyBuilding zhwyBuilding)
    {
        return zhwyBuildingMapper.selectZhwyBuildingList(zhwyBuilding);
    }

    /**
     * 新增楼栋信息
     * 
     * @param zhwyBuilding 楼栋信息
     * @return 结果
     */
    @Override
    public int insertZhwyBuilding(ZhwyBuilding zhwyBuilding)
    {
        return zhwyBuildingMapper.insertZhwyBuilding(zhwyBuilding);
    }

    /**
     * 修改楼栋信息
     * 
     * @param zhwyBuilding 楼栋信息
     * @return 结果
     */
    @Override
    public int updateZhwyBuilding(ZhwyBuilding zhwyBuilding)
    {
        return zhwyBuildingMapper.updateZhwyBuilding(zhwyBuilding);
    }

    /**
     * 批量删除楼栋信息
     * 
     * @param ids 需要删除的楼栋信息主键
     * @return 结果
     */
    @Override
    public int deleteZhwyBuildingByIds(Long[] ids)
    {
        return zhwyBuildingMapper.deleteZhwyBuildingByIds(ids);
    }

    /**
     * 删除楼栋信息信息
     * 
     * @param id 楼栋信息主键
     * @return 结果
     */
    @Override
    public int deleteZhwyBuildingById(Long id)
    {
        return zhwyBuildingMapper.deleteZhwyBuildingById(id);
    }
}
